package com.qiyuexinxi.chat.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * @author yangxingyu
 * @date 2020/2/27
 * @description
 */
@ApiModel("上传用户图片")
@Data
public class FileUploadRequest {

    @ApiModelProperty(value = "上传图片",dataType = "file")
    @NotNull(message = "上传图片不能为空")
    private MultipartFile pictureImg;

    @ApiModelProperty("图片类型 0用户信息 1背景 2动态 ")
    @NotNull(message = "图片类型不能为空")
    private Integer pictureType;

    @ApiModelProperty("用户ID")
    @NotNull(message = "用户ID不能为空")
    private Integer userId;

}
